#coding=utf-8
import shodan
api_key="ooluwgJlBBskrqDGvltxyXTvSBXBhSpJ"
api=shodan.Shodan(api_key)

try:
	results=api.search('strust2')
	print  "Results found: %s" % results['total']
	for result in results['matches']:
            print result['ip_str']
except shodan.APIError,e:
	print "Error: %s" % e